All Questions
3 questions
1vote
1answer
1kviews
Is new object creation necessary with BigDecimal?
Problem description: I am running performance test of calculation of PI number with primitives and with BigDecimal class. Calculation of PI with primitives is around 5-6 times faster than the same ...
0votes
0answers
132views
Best datastructure to use
I am using Amazon's dynamodb nosql database and as a result I need to think of some ways to do certain operations to fit into their limits (e.g 4k item limit, can't combine small items into the same ...
6votes
4answers
34kviews
Most Efficient way to Compute the sum of divisors of N (1 ≤ N ≤ 1 000 000 000)
I want to write a code which computes the sum of divisors of a number N(1 ≤ N ≤ 1 000 000 000), excluding the number itself. However, I need an efficient way to do it. It suppose to print the answer ...